package cn.edu.csust.cvs.management.repository;

import cn.edu.csust.cvs.management.repository.entity.VideoStorageEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Auther: snail
 * @Date: 2021/1/22 00:30
 * @Description: 视频存储数据访问对象
 */
@Repository
public interface VideoStorageRepository extends JpaRepository<VideoStorageEntity, Integer> {

    /**
     * 批量查询视频存储列表
     * @param ids
     * @return
     */
    List<VideoStorageEntity> queryByVideoIdIn(List<Integer> ids);

    /**
     * 查询视频存储
     * @param videoId
     * @return
     */
    VideoStorageEntity queryByVideoId(Integer videoId);
}
